<template>
    <div class=''>购物车</div>
</template>

<script>
export default {
    data() {
        return {};
    },
    // beforeRouteEnter:(to, from,next)=>{ // 进入当前页面就会触发
    //   console.log(to);
    //   console.log(from);
    //   next();
    // },
    beforeRouteLeave:(to, from,next)=>{ // 离开当前页面就会触发
      console.log(to);
      console.log(from);
      next();
    },
    
    mounted() {},
    methods: {},
    components:{}
};
</script>

<style lang='scss'>

</style>
